<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<?php
$db = mysqli_connect("localhost","root","");
mysqli_select_db($db, "thuctap");
mysqli_set_charset($db, "utf8");
print_r($_POST);
$sql="Select *
		from sinhvien
		";

$result=mysqli_query($db,$sql);
$str="<table >";
$str.="<tr>
		<th>Username</th>
		<th>Password</th>
		<th>Address</th>
		<th>Phone number</th>
		<th>Email</th>
		</tr>";
while($row=mysqli_fetch_array($result))
{
	$str.="<tr>";
	$str.="<td>".$row['username']."</td>";
	$str.="<td>".$row['password']."</td>";
	$str.="<td>".$row['address']."</td>";
	$str.="<td>".$row['phone']."</td>";
	$str.="<td>".$row['email']."</td></tr>";
	}
echo $str."</table><br>";

?>
<body>
</body>
</html>